import request from './request';

//获取企业合作列表
export function getCooperateList(params:any) {
  return request({
    url: "/kjy/industry-academia-collaboration/list",
    method: "get",
    params: params,
  });
}

//获取自己的校企合作
export function getMyCooperateList(params:any) {
  return request({
    url: '/kjy/industry-academia-collaboration/listByUserId',
    method: 'get',
    params
  });
}
//新增合作企业
export function addInfo(data: any) {
  return request({
    url: '/kjy/industry-academia-collaboration',
    method: 'post',
    data: data,
  });
}
//修改合作企业信息
export function updateInfo(data: any) {
  return request({
    url: '/kjy/industry-academia-collaboration',
    method: 'put',
    data: data,
  });
}
//删除合作企业
export function delInfo(id: any) {
  return request({
    url: '/kjy/industry-academia-collaboration/' + id,
    method: 'delete',
  });
}

//获取合作方式类型(横向)
export function getCooperateType() {
  return request({
    url: "/system/dict/data/type/sys_cooperate_level",
    method: "get"
  });
}
//获取合作方式类型(纵向)
export function getCooperateType2() {
  return request({
    url: "/system/dict/data/type/sys_cooperate_type",
    method: "get"
  });
}